// pages/homepage/homepage.js
Page({
  data: {
    abc:''
  },
  onShareAppMessage: function () {
  },
  onLoad: function (options) {
    
  },
  foodinput:function(e){
    var that = this;
    //var obj=e.detail.value;
    var abc = wx.getStorageSync('id');
    console.log("foodinput中id的值" + abc);    
    // wx.setStorage({
    //   key: "abc",
    //   data: obj.abc
    // })
    wx.navigateTo({
      url: 'dietinput/dietinput?abc='+abc,
    })
  },
  foodinfo:function(){
    var abc = wx.getStorageSync('id');
    console.log("foodinfo中id的值" + abc);    
    wx.navigateTo({
      url: 'dietinfo/dietinfo?abc=' + abc,
    })
  },
  sugarinput:function(){
    var abc = wx.getStorageSync('id');
    console.log("sugarinput中id的值" + abc);    
    wx.navigateTo({
      url: 'sugarinput/sugarinput?abc=' + abc,
    })
  },
  sporthealth:function(){
    var abc = wx.getStorageSync('id');
    console.log("sporthealth中id的值" + abc);    
    wx.navigateTo({
      url: 'sport/sport?abc=' + abc,
    })
  },
  chargedoctor:function(){
    var abc = wx.getStorageSync('id');
    console.log("chargedoctor中id的值" + abc);    
    wx.navigateTo({
      url: 'majordoctor/majordoctor?abc='+abc,
    })
  },
  patientbook:function(){
    var abc = wx.getStorageSync('id');
    console.log("patientbook中id的值" + abc);    
    wx.navigateTo({
      url: 'patientbook/patientbook?abc=' + abc,
    })
  },
  search: function () {
    var abc = wx.getStorageSync('id');
    console.log("search中id的值" + abc);
    wx.navigateTo({
      url: 'search/search?abc=' + abc,
    })
  }

})
